package com.lzh.tiktok.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lizhihang
 * @create 2023-01-16 20:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("user")
public class UserEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private Integer userId;

    private String username;

    private String email;

    private String password;

    private Date createTime;

    private Date updateTime;

    public UserEntity(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
